#ifndef OBPLANT_H
#define OBPLANT_H

#include "d3dx9.h"
#include "ObStatic.h"
#include <vector>
#include "ObPipe.h"

class ObPlant : public ObStatic{
public:
	enum STATUS {LEFT, RIGHT, TOP, DOWN};
	ObPlant(ObPipe* parent, IDirect3DTexture9* mtex, float px, float py, STATUS param);
	~ObPlant();

	void collidedWith(ObObject* object, CollisionRS rs);
	void update(float dt);
	void render(ID3DXSprite* mSprite);
	void clear();

private:
	D3DXVECTOR3 mOldPos;
	float count;
	float jumpcount;
	float delaycount;
	IDirect3DTexture9* mTex;
	int mCurrentSprite;
	ObPipe* mParent;
	STATUS mStatus;
};
#endif